package com.itany.annotation;

/**
 * Author:石小俊
 * Date: 2022/11/2 17:22
 */
public class Emp {
    // 通过ioc.properties文件的配置
    // 将文件中对应key的数据赋值给当前对象的对应属性
    @Value("no")
    private String no;
    @Value("name")
    private String name;
    @Value("gender")
    private String gender;

    @Override
    public String toString() {
        return "Emp{" +
                "no='" + no + '\'' +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                '}';
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }
}
